import request from '@/utils/request'
const path = "/pay"

/* 获取列表
@param 条件查询
*/
export function findRecordIncomesList(params) {
    return request({
        url: path + '/recordIncomes/',
        method: 'get',
        params
    })
}

export function findRecordIncomesForOutMoney(params) {
  return request({
      url: path + '/recordIncomesForOutMoney/',
      method: 'get',
      params
  })
}
export function findRecordIncomesForShopOutMoney(params) {
  return request({
      url: path + '/recordIncomesForShopOutMoney/',
      method: 'get',
      params
  })
}

/* 获取信息接口
@param recordIncomesId Y
*/
export function getRecordIncomesbyId(data) {
    return request({
      url: path + '/recordIncomes/getItemById/',
      method: 'post',
      data
    })
  }

  // 用户确认提现
  export function confirmOutMoney(data) {
    return request({
      url: path + '/recordIncomes/confirmOutMoney/',
      method: 'post',
      data
    })
  }

  // 提现拒绝
  export function refuseOutMoney(data) {
    return request({
      url: path + '/recordIncomes/refuseOutMoney/',
      method: 'post',
      data
    })
  }

  
  export function confirmOutMoneyForShop(data) {
    return request({
      url: path + '/recordIncomes/confirmOutMoneyForShop/',
      method: 'post',
      data
    })
  }

  export function exportExcel(data) {
    return request({
        url: path + '/recordIncomesForOutMoney/exportExcel/',
        method: 'post',
        data,
        responseType: 'blob',
    })
  }

  export function exportExcelForShop(data) {
    return request({
        url: path + '/recordIncomesForShopOutMoney/exportExcel/',
        method: 'post',
        data,
        responseType: 'blob',
    })
  }